package com.carnation._synchronized_utility;

import java.util.concurrent.TimeUnit;

public class ThreadTest {

    public static void main(String[] args) throws InterruptedException {
//        TimeUnit.SECONDS.sleep(10);
//        Thread.yield();

        Thread thread = new Thread(()->{
            try {
                TimeUnit.SECONDS.sleep(10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        });

        thread.start();
        thread.join();
        System.out.println("------------");
    }

}
